package cn.iocoder.yudao.module.nginxui.controller.admin.eventsconfig.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - Nginx events块配置分页 Request VO")
@Data
public class EventsConfigPageReqVO extends PageParam {

    @Schema(description = "主配置", example = "30234")
    private Long configId;

    @Schema(description = "每个工作进程的最大连接数")
    private Integer workerConnections;

    @Schema(description = "事件模型")
    private String eventModel;

    @Schema(description = "是否允许同时接受多个连接")
    private Integer multiAccept;

    @Schema(description = "是否开启")
    private Integer acceptMutex;

    @Schema(description = "锁的延迟时间")
    private String acceptMutexDelay;

    @Schema(description = "状态", example = "2")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}